package org.springblog.springblog.common.utils;


import org.springblog.springblog.common.pojo.dataobject.BlogInfo;
import org.springblog.springblog.common.pojo.response.BlogInfoResponse;
import org.springframework.beans.BeanUtils;

public class BeanConver {
    public static BlogInfoResponse trans(BlogInfo blogInfo){
        BlogInfoResponse blogInfoResponse = new BlogInfoResponse();
        if (blogInfo!=null){
            BeanUtils.copyProperties(blogInfo, blogInfoResponse);
        }

        return blogInfoResponse;
    }
}